<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>从 GitHub fetch 用户信息</title>
		<script src="https://zh.js.cx/test/libs.js"></script>
		<script src="test.js"></script>
	</head>
	<body>
		<script>
			async function getUsers(names) {
				let requests = names.map((name) => fetch(`https://api.github.com/users/${name}`))
				let responses = await Promise.all(requests)
				let users = await Promise.all(responses.map((response) => response.json()))
				return users
			}
		</script>
	</body>
</html>
